const express = require('express');
const router = express.Router();
const { getCtr,postCtr,putCtr,getCtr1,delCtr,postCtr1,getRecycle,postRecycle,getRecycles,delRecycle,delRecycles } = require("../../../controller/admin/message")

//查询全部数据
router.get("/messageSearch", getCtr)

//新增
router.post('/messageadd',postCtr)
router.post('/messageadd1',postCtr1)

//修改
router.put('/messageadd1',putCtr)

//模糊查询
router.get('/messages',getCtr1)

//删除
router.delete('/messagedel',delCtr)


//====================回收站=======================
//查询全部数据
router.get("/RecycleAll", getRecycle);
// 开启新增
router.post("/Recycleadd", postRecycle);

// 模糊查询
router.get("/Recycles", getRecycles);

// 删除
router.delete("/Recycledel", delRecycle);
// 恢复
router.delete("/Recycledels", delRecycles);
module.exports = router